﻿#include "CmdLineChartDialogTransferFunction.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdLineChartDialogTransferFunction::CmdLineChartDialogTransferFunction()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdLineChartDialogTransferFunction::~CmdLineChartDialogTransferFunction()
    {
    }

    bool CmdLineChartDialogTransferFunction::execute()
    {
        bool _success = false;
        emit IBaseSignalInstance->signal_lineChartDialogTransferFunction(
                m_graphName,
                m_calibrationGraphName,
                m_type
        );
        return true;
    }

    void CmdLineChartDialogTransferFunction::undo()
    {
        // TODO: undo
    }

    void CmdLineChartDialogTransferFunction::redo()
    {
        execute();
    }

} // namespace PostCommand
